package com.fjec.market.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fjec.common.protocol.JsonResult;
import com.fjec.market.entity.BizServOrder;
import com.fjec.market.view.ServOrderItem;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 044.服务订单表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-09-21
 */
public interface IBizServOrderService extends IService<BizServOrder> {

    /**
     * 提交订单
     *
     * @param totalPrice
     * @param orderType
     * @param productList
     * @return
     */
    Long saveOrder(Integer totalPrice, Integer orderType, List<ServOrderItem> productList, String subOpenId, Long userId);

    Long payDeposit();

    Long selfPay();

    int selfPaySuccess(Long orderId);

    int setServOrderStatus2(Long orderId);

    List<Map<String, Object>> getServOrdersToDivide(int limit);
}
